package com.cskaoyan.market.service;

import com.cskaoyan.market.db.domain.MarketBrand;
import com.cskaoyan.market.db.domain.MarketBrandExample;
import com.cskaoyan.market.db.mapper.MarketBrandMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Project:Project2
 * @Title:WxBrandServiceImpl
 * @Package:com.cskaoyan.market.service
 * @Author:Cl
 * @Date :2024/5/21 14:17
 */
@Service
public class WxBrandServiceImpl implements WxBrandService {
    @Autowired
    MarketBrandMapper marketBrandMapper;
    @Override
    public List<MarketBrand> list() {
        return marketBrandMapper.selectByExample(new MarketBrandExample());
    }
    @Override
    public MarketBrand detail(Integer id) {
        return marketBrandMapper.selectByPrimaryKey(id);
    }
}
